package com.tsd.system.dao;

import com.tsd.core.vo.PageBean;
import com.tsd.system.entity.SysUserBind3rd;
import com.tsd.system.entity.SysUserBind3rdExt;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 描述：SysUserBind3rdMapper
 *
 * @author huawei
 * @date 2021/07/18 10:53:52
 */
public interface SysUserBind3rdMapper {

    SysUserBind3rd selectByPrimaryKey(Long id);

    SysUserBind3rdExt selectBySid(String sid);

    int deleteByPrimaryKey(Long id);

    int insert(SysUserBind3rd record);

    int insertSelective(SysUserBind3rd record);

    int insertList(List<SysUserBind3rd> list);

    int updateByPrimaryKey(SysUserBind3rd record);

    int updateByPrimaryKeySelective(SysUserBind3rd record);

    List<SysUserBind3rdExt> selectByEntity(SysUserBind3rd record);

    List<SysUserBind3rdExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysUserBind3rdExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<SysUserBind3rdExt> selectByParams(@Param("params") Map<String, Object> params);

    SysUserBind3rdExt selectSameObj(SysUserBind3rdExt record);
    //批量插入，mysql默认接受sql的大小是1048576(1M)，此方式若数据量超过1M会报如下异常：（可通过调整MySQL安装目录下的my.ini文件中[mysqld]段的＂max_allowed_packet = 1M＂）
    //void insertList(List<SysUserBind3rd> list);
}